//链接数据库
var mysql = require("mysql");
exports.getConn =function (){
    var MainMysql=mysql.createConnection({
        host:"localhost",
        user:"root",
        password:"lovo",
        database:"test"
    });
    return MainMysql;
}
//关闭数据库连接
exports.endDb=function(MainMysql){
    MainMysql.end();
}